<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>ProvCon.docsis.cablemodem</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="ProvCon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >docsis-provisioning</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="ProvCon-module.html">Package&nbsp;ProvCon</a> ::
        <a href="ProvCon.docsis-module.html">Package&nbsp;docsis</a> ::
        Module&nbsp;cablemodem
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="ProvCon.docsis.cablemodem-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="ProvCon.docsis.cablemodem-module.html">Module ProvCon.docsis.cablemodem</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#!/bin/env python</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
<a name="cablemodem"></a><div id="cablemodem-def"><a name="L3"></a><tt class="py-lineno"> 3</tt> <a class="py-toggle" href="#" id="cablemodem-toggle" onclick="return toggle('cablemodem');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem-class.html">cablemodem</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="cablemodem-expanded"><a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"> </tt>
<a name="cablemodem._mac"></a><div id="cablemodem._mac-def"><a name="L5"></a><tt class="py-lineno"> 5</tt> <a class="py-toggle" href="#" id="cablemodem._mac-toggle" onclick="return toggle('cablemodem._mac');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem._mac-class.html">_mac</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem._mac-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="cablemodem._mac-expanded"><a name="cablemodem._mac.__init__"></a><div id="cablemodem._mac.__init__-def"><a name="L6"></a><tt class="py-lineno"> 6</tt> <a class="py-toggle" href="#" id="cablemodem._mac.__init__-toggle" onclick="return toggle('cablemodem._mac.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem._mac-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kkw</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem._mac.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++++++"></div><div id="cablemodem._mac.__init__-expanded"><a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">ethernet</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Method ProvCon.dbui.orm.recordsearch.OIDSearchList.get()=ProvCon.dbui.orm.recordsearch.OIDSearchList-class.html#get,Method ProvCon.func.variables.TracedVariable.get()=ProvCon.func.variables.TracedVariable-class.html#get"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-0', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'ethernet'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">hfc</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-1" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-1', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'hfc'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">usb</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-2', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'usb'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lan</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-3', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'lan'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wan</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-4', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'wan'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
</div></div><a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"> </tt>
<a name="cablemodem._cpe"></a><div id="cablemodem._cpe-def"><a name="L13"></a><tt class="py-lineno">13</tt> <a class="py-toggle" href="#" id="cablemodem._cpe-toggle" onclick="return toggle('cablemodem._cpe');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem._cpe-class.html">_cpe</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem._cpe-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="cablemodem._cpe-expanded"><a name="cablemodem._cpe.__init__"></a><div id="cablemodem._cpe.__init__-def"><a name="L14"></a><tt class="py-lineno">14</tt> <a class="py-toggle" href="#" id="cablemodem._cpe.__init__-toggle" onclick="return toggle('cablemodem._cpe.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem._cpe-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">cpe</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem._cpe.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++++++"></div><div id="cablemodem._cpe.__init__-expanded"><a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">ip</tt> <tt class="py-op">=</tt> <tt class="py-name">cpe</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-5', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'ip'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mac</tt> <tt class="py-op">=</tt> <tt class="py-name">cpe</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-6', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'mac'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">             </tt>
<a name="cablemodem._cos"></a><div id="cablemodem._cos-def"><a name="L18"></a><tt class="py-lineno">18</tt> <a class="py-toggle" href="#" id="cablemodem._cos-toggle" onclick="return toggle('cablemodem._cos');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem._cos-class.html">_cos</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem._cos-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="cablemodem._cos-expanded"><a name="cablemodem._cos.__init__"></a><div id="cablemodem._cos.__init__-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="cablemodem._cos.__init__-toggle" onclick="return toggle('cablemodem._cos.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem._cos-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">cos</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem._cos.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++++++"></div><div id="cablemodem._cos.__init__-expanded"><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">upload</tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name" targets="Variable ProvCon.docsis.compiler.config.cos=ProvCon.docsis.compiler.config-module.html#cos"><a title="ProvCon.docsis.compiler.config.cos" class="py-name" href="#" onclick="return doclink('link-7', 'cos', 'link-7');">cos</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-8', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"upload"</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt> <tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">download</tt> <tt class="py-op">=</tt> <tt id="link-9" class="py-name"><a title="ProvCon.docsis.compiler.config.cos" class="py-name" href="#" onclick="return doclink('link-9', 'cos', 'link-7');">cos</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-10', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"download"</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt> <tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">priority</tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name"><a title="ProvCon.docsis.compiler.config.cos" class="py-name" href="#" onclick="return doclink('link-11', 'cos', 'link-7');">cos</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-12', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"prio"</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt> <tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">nightsurf</tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name"><a title="ProvCon.docsis.compiler.config.cos" class="py-name" href="#" onclick="return doclink('link-13', 'cos', 'link-7');">cos</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-14', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"nightsurf"</tt><tt class="py-op">,</tt> <tt class="py-name">False</tt> <tt class="py-op">)</tt> </tt>
</div></div><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">             </tt>
<a name="cablemodem.__init__"></a><div id="cablemodem.__init__-def"><a name="L25"></a><tt class="py-lineno">25</tt> <a class="py-toggle" href="#" id="cablemodem.__init__-toggle" onclick="return toggle('cablemodem.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.docsis.cablemodem.cablemodem-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kkw</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cablemodem.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="cablemodem.__init__-expanded"><a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-15', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'active'</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt> <tt class="py-op">)</tt>         </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mac</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Class ProvCon.docsis.cablemodem.cablemodem._mac=ProvCon.docsis.cablemodem.cablemodem._mac-class.html"><a title="ProvCon.docsis.cablemodem.cablemodem._mac" class="py-name" href="#" onclick="return doclink('link-16', '_mac', 'link-16');">_mac</a></tt> <tt class="py-op">(</tt> <tt class="py-op">**</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-17', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'mac'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">docsis_version</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-18', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"docsis_version"</tt><tt class="py-op">,</tt> <tt class="py-number">1.0</tt> <tt class="py-op">)</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mgmt_ip</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-19', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"mgmt_ip"</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">cpe</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Class ProvCon.docsis.cablemodem.cablemodem._cpe=ProvCon.docsis.cablemodem.cablemodem._cpe-class.html"><a title="ProvCon.docsis.cablemodem.cablemodem._cpe" class="py-name" href="#" onclick="return doclink('link-20', '_cpe', 'link-20');">_cpe</a></tt> <tt class="py-op">(</tt><tt class="py-name">i</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-21', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">'cpe'</tt><tt class="py-op">,</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">firewall</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-22', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"firewall"</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt> <tt class="py-op">)</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">maxcpe</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-23', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"maxcpe"</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt> <tt class="py-op">)</tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">snmpwrite</tt> <tt class="py-op">=</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-24', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"snmpwrite"</tt><tt class="py-op">,</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-op">)</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="ProvCon.docsis.compiler.config.cos" class="py-name" href="#" onclick="return doclink('link-25', 'cos', 'link-7');">cos</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name" targets="Class ProvCon.docsis.cablemodem.cablemodem._cos=ProvCon.docsis.cablemodem.cablemodem._cos-class.html"><a title="ProvCon.docsis.cablemodem.cablemodem._cos" class="py-name" href="#" onclick="return doclink('link-26', '_cos', 'link-26');">_cos</a></tt> <tt class="py-op">(</tt> <tt class="py-op">**</tt> <tt class="py-name">kkw</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-27', 'get', 'link-0');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"cos"</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
</div></div><a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">         </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">template</tt> <tt class="py-keyword">import</tt> <tt class="py-name">RunTemplate</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">StringIO</tt> <tt class="py-keyword">import</tt> <tt class="py-name">StringIO</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line"><tt class="py-comment">#cm = {</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line"><tt class="py-comment">#    'active': 1</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"><tt class="py-comment">#}</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line"><tt id="link-28" class="py-name" targets="Variable ProvCon.docsis.cablemodem.cm=ProvCon.docsis.cablemodem-module.html#cm"><a title="ProvCon.docsis.cablemodem.cm" class="py-name" href="#" onclick="return doclink('link-28', 'cm', 'link-28');">cm</a></tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name" targets="Module ProvCon.docsis.cablemodem=ProvCon.docsis.cablemodem-module.html,Class ProvCon.docsis.cablemodem.cablemodem=ProvCon.docsis.cablemodem.cablemodem-class.html"><a title="ProvCon.docsis.cablemodem
ProvCon.docsis.cablemodem.cablemodem" class="py-name" href="#" onclick="return doclink('link-29', 'cablemodem', 'link-29');">cablemodem</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line"><tt id="link-30" class="py-name" targets="Variable ProvCon.docsis.cablemodem.of=ProvCon.docsis.cablemodem-module.html#of"><a title="ProvCon.docsis.cablemodem.of" class="py-name" href="#" onclick="return doclink('link-30', 'of', 'link-30');">of</a></tt> <tt class="py-op">=</tt> <tt class="py-name">StringIO</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line"><tt class="py-name">RunTemplate</tt> <tt class="py-op">(</tt> <tt class="py-string">'template_test.t.py'</tt><tt class="py-op">,</tt> <tt id="link-31" class="py-name"><a title="ProvCon.docsis.cablemodem.of" class="py-name" href="#" onclick="return doclink('link-31', 'of', 'link-30');">of</a></tt><tt class="py-op">,</tt> <tt id="link-32" class="py-name"><a title="ProvCon.docsis.cablemodem.cm" class="py-name" href="#" onclick="return doclink('link-32', 'cm', 'link-28');">cm</a></tt> <tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"><tt class="py-keyword">print</tt> <tt id="link-33" class="py-name"><a title="ProvCon.docsis.cablemodem.of" class="py-name" href="#" onclick="return doclink('link-33', 'of', 'link-30');">of</a></tt><tt class="py-op">.</tt><tt class="py-name">getvalue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="ProvCon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >docsis-provisioning</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Tue Jan 13 12:48:45 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
